
$(document).ready(function(){
	var fun = function(){
		var box=$(this).parent();
		var id = $(this).attr("data-id");
		$.ajax({
			  type: "GET",
			  url: $(this).attr("href"),
			
			  success: function(msg){
				     $(box).html(msg);
				     $('#box'+id).tabs({ fxFade: true, fxSpeed: 'fast' });
				     if($('#slider1').size())
				     $('#slider1').data('AnythingSlider').updateSlider();
				     $('a',$('moreInfo'+id)).bind("click", function(){return false;});
				   }
			});
		  return false;
		};
	$(".moreInfoA").bind("click", fun);
	
	
	$(".rootMoreInfoA").live("click", function(){
		var box=$(this).parent();
		var id = $(this).attr("data-id");
		$.ajax({
			  type: "GET",
			  url: $(this).attr("href"),
			
			  success: function(msg){
				     $(box).html(msg);
				     $(".moreInfoA",$("#moreInfo"+id)).bind("click", fun);//,$("#moreInfo"+id)
				     
				     if($('#slider1').size())
				     $('#slider1').data('AnythingSlider').updateSlider();
				    
				   }
			});
		  return false;
		});
	
});
function rwt(a,b){
	return false;
}